#define _CRT_SECURE_NO_WARNINGS 1

#include "list.h"
#include "vector.h"

int main()
{
	zrb::list<int> L1;
	L1.push_back(1);
	L1.push_back(2);
	L1.push_back(3);
	L1.push_back(4);
	L1.push_back(5);

	zrb::list<int>::iterator it = L1.begin();
	while (it != L1.end())
	{
		std::cout << *it << " ";
		it++;
	}
	cout << endl;

	zrb::list<int>::reverse_iterator it1 = L1.rbegin();
	while (it1 != L1.rend())
	{
		std::cout << *it1 << " ";
		it1++;
	}
	cout << endl;

	zrb::list<int>::reverse_iterator it2 = L1.rbegin();
	while (it2 != L1.rend())
	{
		std::cout << *it2 << " ";
		++it2;
	}
	cout << endl;

	zrb::vector<int> v1;
	v1.push_back(1);
	v1.push_back(2);
	v1.push_back(3);
	v1.push_back(4);
	v1.push_back(5);
	zrb::vector<int>::iterator it3 = v1.begin();
	while (it3 != v1.end())
	{
		cout << *it3 << " ";
		it3++;
	}
	cout << endl;

	zrb::vector<int>::reverse_iterator it4 = v1.rbegin();
	while (it4 != v1.rend())
	{
		cout << *it4 << " ";
		it4++;
	}
	cout << endl;

	zrb::vector<int>::reverse_iterator it5 = v1.rbegin();
	while (it5 != v1.rend())
	{
		cout << *it5 << " ";
		++it5;
	}
	cout << endl;
	return 0;
}

